//
//  LLDateUtilis.h
//  TaoTuo
//
//  Created by admin on 2019/10/10.
//  Copyright © 2019 admin. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_OPTIONS(NSUInteger, DateUnit) {
    Year  = NSCalendarUnitYear,
    Month = NSCalendarUnitMonth,
    Day = NSCalendarUnitDay,
    Hour = NSCalendarUnitHour,
    Minute = NSCalendarUnitMinute,
    Second = NSCalendarUnitSecond
};

NS_ASSUME_NONNULL_BEGIN

@interface LLDateUtilis : NSObject


///获取当前时间
+ (NSString *)getCurrentTimeString;


///带时分秒的比较，如果 fromDateString < toDateString，得到的时分秒是 正数，反之是负数
+ (NSDateComponents *)compareFromDateString:(NSString *)fromDateString toDateString:(NSString *)toDateString deteUnit:(DateUnit)dateUnit;




@end

NS_ASSUME_NONNULL_END
